#include <stdio.h>
#include <string.h>

#define MIN(a, b) ((a) > (b) ? (b) : (a))

int main(void) {
    int n;
    scanf("%d", &n);
    for(int i = 0; i < n; i++) {
        int n, p;
        scanf("%d%d", &n, &p);
        int alice_letters[26];
        memset(alice_letters, 0, 26 * sizeof(int));
        int bob_letters[26];
        memset(bob_letters, 0, 26 * sizeof(int));
        scanf(" ");
        int c;
        while(c = getchar(), c != EOF && c != '\n') {
            if (c >= 'a' && c <= 'z') {
                alice_letters[c - 'a']++;
            }
        }
        while(c = getchar(), c != EOF && c != '\n') {
            if (c >= 'a' && c <= 'z') {
                bob_letters[c - 'a']++;
            }
        }
        int alice_max = 0;
        int bob_max = 0;
        for (int k = 0; k < 26; k++) {
            if (alice_letters[k] > alice_max) {
                alice_max = alice_letters[k];
            }
            if (bob_letters[k] > bob_max) {
                bob_max = bob_letters[k];
            }
        }
        int alice_score = MIN(alice_max + p, n);
        int bob_score = MIN(bob_max + p, n);
        if (alice_max == n && p ==  1) {
            alice_score -= 1;
        }
        if (bob_max == n && p ==  1) {
            bob_score -= 1;
        }
        if (alice_score == bob_score) {
            puts("Draw");
        } else {
            puts(alice_score > bob_score ? "Alice" : "Bob");
        }
    }
    return 0;
}
